//
//  StatusBottomView.swift
//  HMWeibo08
//
//  Created by 唐万超 on 15/8/3.
//  Copyright © 2015年 唐万超. All rights reserved.
//

import UIKit

class StatusBottomView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    private func setupUI() {
        
        // 设置背景颜色
        backgroundColor = UIColor(white: 0.95, alpha: 1.0)
        
        // 添加子控件
        addSubview(forwardButton)
        addSubview(commentButton)
        addSubview(likeButton)
        
        // 设置约束
        ff_HorizontalTile([forwardButton,commentButton,likeButton], insets: UIEdgeInsetsZero)
    
    }
    
    // MARK: - 懒加载控件
    private lazy var forwardButton: UIButton = UIButton(text: " 转发", imageName: "timeline_icon_retweet")
    
    private lazy var commentButton: UIButton = UIButton(text: " 评论", imageName: "timeline_icon_comment")
    
    private lazy var likeButton: UIButton = UIButton(text: " 赞", imageName: "timeline_icon_unlike")

}
